/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import model.Activity;
import model.Event;
import persistence.ActivityDAO;

/**
 *
 * @author Martin Mohr Pedersen
 */
public class ActivityController {

    public Activity[] getActivitiesForCurrentEvent() {
        EventController eventCont = new EventController();
        Event currentEvent = eventCont.getCurrentEvent();
        
        ActivityDAO activityDao = new ActivityDAO();
        return activityDao.getActivitiesForEvent(currentEvent);
    }
}
